var e = require("bleUtil.js");

module.exports = {
  sendCommand: function(t) {
    wx.closeBluetoothAdapter({
      success: function(e) {
        console.log("先关闭蓝牙");
      }
    });
    var o = {
        name: "",
        adviceId: "",
        sendCommend: "",
        onSuccessCallBack: function(e) {},
        onFailCallBack: function(e) {},
        onCompleteCallBack: function(e) {},
        services: ["xxxxx-xxxxxxxxx-xxxxx"],
        writeServiceUUID: "0000FF91-0000-1000-8000-00805F9B34FB",
        notifyServiceUUID: "0000FF91-0000-1000-8000-00805F9B34FB",
        notifyCharacteristicUUID: "00001001-0000-1000-8000-00805F9B34FB",
        writeCharacteristicUUID: "00001002-0000-1000-8000-00805F9B34FB"
      },
      n = Object.assign(o, t);
    e.writeCommend(n);
  },
  bindBlt: function(t) {
    e.openBluetoothAdapter(t);
  },
  intBlt: function() {
    console.log("连接蓝牙，获取已连接列表"), openBluetoothAdapter();
  }
};